Skip to content

Use nested bridging when parse specialization fails.#819

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_896082192
Apr 7, 2026
Merged

Use nested bridging when parse specialization fails.#819
copybara-service[bot] merged 1 commit intomainfrom
test_896082192

Conversation

@copybara-service
Copy link
Copy Markdown

Use nested bridging when parse specialization fails.

Previously, we would always unwrap an error out of
parse_rs_std_template_specialization. For types like Option<Proto>
this would lead to failing to format the type because specialization
would try to format it in location Other when we need to format it as
NestedBridgeable. We fix this by only unwrapping our error when our
location doesn't admit bridging.

@copybara-service copybara-service bot force-pushed the test_896082192 branch 3 times, most recently from 8b37625 to dc95f7c Compare April 7, 2026 23:21
Previously, we would always unwrap an error out of
`parse_rs_std_template_specialization`. For types like `Option<Proto>`
this would lead to failing to format the type because specialization
would try to format it in location `Other` when we need to format it as
`NestedBridgeable`. We fix this by only unwrapping our error when our
location doesn't admit bridging.

PiperOrigin-RevId: 896142554
@copybara-service copybara-service bot merged commit fed62f4 into main Apr 7, 2026
@copybara-service copybara-service bot deleted the test_896082192 branch April 7, 2026 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant